package cn.chendd.bless.controller;

import cn.chendd.bless.service.GoodLuckService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 新年好运 Controller
 * @author chendd
 * @date 2023/1/23 20:51
 */
@RestController
@RequestMapping("/api")
public class GoodLuckController {

    @Resource
    private GoodLuckService goodLuckService;

    @GetMapping("/success")
    public void saveData() {
        this.goodLuckService.saveData();
    }

    @GetMapping("/exception")
    public void saveDataException() {
        this.goodLuckService.saveDataException();
    }

}

